package service;

import dao.FoodMapper;
import entity.r_complaint;
import entity.r_food;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class FoodServiceImpl implements FoodService{
    @Resource
    private FoodMapper foodMapper;

    @Override
    public List<r_food> getAll(r_food food) {
        return foodMapper.getAll(food);
    }

    public List<r_complaint> getCompAll(Map map){
        return this.foodMapper.getCompAll(map);
    };
}
